﻿@model HQPad.Controllers.SettingsModel

@{
    Layout = "~/Views/Shared/_ModalLayout.cshtml";
}


<h1>Your HQPad settings</h1>

<section class="modal-content">
    <div class="edit-settings modal-form form">
        @using (Html.BeginForm("Index", "Settings", FormMethod.Post, new { @name = "editSettingsForm", @id = "editSettingsForm" }))
        {
            <div class="field-item">
                <div class="label"><label for="showAllSkills">Show all skills:</label></div>
                <input type="checkbox" id="showAllSkills" name="showAllSkills" @Html.Raw(Model.ShowAllSkills ? "checked=\"checked\"" : "") />
                <p>Show all the possible guild skills, even those that have not met their prerequisites.</p>
            </div>
            <input type="submit" value="Update" />
        }
    </div>
</section>

<script type="text/javascript">
    $(document).ready(function () {
        $('.modal-content').user({
            updateSettingsUrl: '@Url.Action("UpdateSettings","User", null, null)',
            updateSettingsCallback: function () {
                parent.closeModalMaster();
            }
        });
    });
</script>